package com.itheima.demo6proxy;

public class test {
    public static void main(String[] args) {
        Star star = new Star("章若楠",18);
        //创建代理对象
        ServiceStar proxy = ProxyDemo.getProxy(star);
        proxy.sing("歌名");
        System.out.println(proxy.dance());

    }
}
